package com.slwu.request.plot;

import cn.hutool.json.JSONObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 地块添加参数
 *
 * @author wushaolin
 * @date  2024/11/14 15:19
 **/
@Getter
@Setter
public class PlotAddParam {

    /** 名称 */
    @ApiModelProperty(value = "名称", required = true, position = 1)
    @NotBlank(message = "name不能为空")
    private String name;

    /** 村代码 */
    @ApiModelProperty(value = "村代码", required = true, position = 2)
    @NotBlank(message = "village不能为空")
    private String village;

    /** 扩展 */
    @ApiModelProperty(value = "扩展", position = 3)
    private JSONObject ext;

}
